<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>设备类型</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript" src="plug-in/ckeditor_new/ckeditor.js"></script>
<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="zyEquipmentTypeController.do?doUpdate" tiptype="3">
		<input id="id" name="id" type="hidden" value="${zyEquipmentTypePage.id }">
		<input id="createName" name="createName" type="hidden" value="${zyEquipmentTypePage.createName }">
		<input id="createBy" name="createBy" type="hidden" value="${zyEquipmentTypePage.createBy }">
		<input id="createDate" name="createDate" type="hidden" value="${zyEquipmentTypePage.createDate }">
		<input id="updateName" name="updateName" type="hidden" value="${zyEquipmentTypePage.updateName }">
		<input id="updateBy" name="updateBy" type="hidden" value="${zyEquipmentTypePage.updateBy }">
		<input id="updateDate" name="updateDate" type="hidden" value="${zyEquipmentTypePage.updateDate }">
		<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
			<c:if test="${!empty zyEquipmentTypePage.equipmentType.id }">
				<tr>
					<td align="right">
						<label class="Validform_label">
							父级机型:
						</label>
					</td>
					<td class="value">
						<input name="equipmentType.id" type="hidden" id="equipmentTypeId" value="${zyEquipmentTypePage.equipmentType.id}" />
						<input class="inputxt" id="equipmentTypeName" readonly="readonly" value="${zyEquipmentTypePage.equipmentType.typeDesc}" datatype="*" />
						<t:choose hiddenName="equipmentTypeId" hiddenid="id" url="zyEquipmentTypeController.do?goChooseEquipmentType" name="zyEquipmentTypeList" 
							icon="icon-search" title="机型" inputTextname="equipmentTypeName" textname="text"  isclear="true" width="400px" height="500px"></t:choose>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">父级机型</label>
					</td>
				</tr>
			</c:if>
			<tr>
				<td align="right">
					<label class="Validform_label">
						机型名:
					</label>
				</td>
				<td class="value">
					<input id="typeDesc" name="typeDesc" type="text" style="width: 150px" class="inputxt" value="${zyEquipmentTypePage.typeDesc}" 
						ajaxurl="zyEquipmentTypeController.do?checkTypeDescUnique&etId=${zyEquipmentTypePage.id}&parentId=${zyEquipmentTypePage.equipmentType.id}" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">机型名</label>
				</td>
			</tr>
            <tr>
                <td align="right">
                    <label class="Validform_label">
                        Logo:
                    </label>
                </td>
                <td class="value">
                    <input id="logo" name="logo" type="text" style="width: 150px" class="inputxt" value="${zyEquipmentTypePage.logo}"/>

                </td>
            </tr>
		</table>
	</t:formvalid>
</body>
<script src = "webpage/com/zybk/zy_equipment_type/zyEquipmentType.js"></script>		